﻿<UserControl x:Class="BMS.VISITORS.DESKTOP.Content.VisitorDataGrid"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:core="clr-namespace:System;assembly=mscorlib"
             xmlns:local="clr-namespace:BMS.VISITORS.DESKTOP.Content"
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.Resources>
            <!--Create list of enumeration values-->
            <ObjectDataProvider x:Key="myEnum" MethodName="GetValues" ObjectType="{x:Type core:Enum}">
                <ObjectDataProvider.MethodParameters>
                    <x:Type Type="local:OrderStatus"/>
                </ObjectDataProvider.MethodParameters>
            </ObjectDataProvider>
        </Grid.Resources>

        <DockPanel>
            <TextBlock DockPanel.Dock="Top" Text="CONSULTA DE VISITANTES" Style="{StaticResource Heading2}" Margin="0,0,0,8" />
            
            <StackPanel x:Name="Form" Orientation="Vertical">
                <mui:BBCodeBlock BBCode="Últimos visitantes registrados." Margin="0,0,0,16"/>
                <DataGrid Name="DG1" ItemsSource="{Binding}" AutoGenerateColumns="False" >
                    <DataGrid.Columns>
                        <mui:DataGridTextColumn Header="Número de documento"  Binding="{Binding DocumentId}"/>
                        <mui:DataGridTextColumn Header="Nombre(s)"  Binding="{Binding Name}"/>
                        <mui:DataGridTextColumn Header="Apellido(s)" Binding="{Binding LastName}" />
                        <!--<mui:DataGridTextColumn Header="Teléfono" Binding="{Binding Telephone}" />-->
                        <mui:DataGridTextColumn Header="Género" Binding="{Binding Genere}" />
                        <mui:DataGridTextColumn Header="Fecha de registro" Binding="{Binding RegisterDate}" />
                        <!--<mui:DataGridTextColumn Header="Email" Binding="{Binding Email}"/>-->
                        <!--<mui:DataGridCheckBoxColumn Header="Member" Binding="{Binding IsMember}" />-->
                        <!--<mui:DataGridComboBoxColumn Header="Order Status" SelectedItemBinding="{Binding Status}" ItemsSource="{Binding Source={StaticResource myEnum}}" />-->
                    </DataGrid.Columns>
                </DataGrid>
            </StackPanel>
        </DockPanel>
    </Grid>
</UserControl>
